import { ITable } from '@/base-ui/HyTable/types';
export const goodsTableConfig: ITable = {
  tableItems: [
    {
      label: '商品名称',
      prop: 'name'
    },
    {
      label: '原价',
      prop: 'oldPrice',
      width: '80',
      slotName: 'oldPrice'
    },
    {
      label: '现价',
      prop: 'newPrice',
      width: '80',
      slotName: 'newPrice'
    },
    {
      label: '状态',
      prop: 'status',
      width: '80',
      slotName: 'status'
    },
    {
      label: '商品图片',
      prop: 'imgUrl',
      slotName: 'imgUrl'
    },
    {
      label: '描述',
      prop: 'desc'
    },
    {
      label: '库存',
      prop: 'inventoryCount',
      width: '60'
    },
    {
      label: '销量',
      prop: 'saleCount',
      width: '60'
    },
    {
      label: '喜欢',
      prop: 'favorCount',
      slotName: 'favorCount'
    },
    {
      label: '地址',
      prop: 'address',
      width: '60'
    },
    {
      label: '创建时间',
      prop: 'createAt',
      slotName: 'createAt'
    },
    {
      label: '更新时间',
      prop: 'updateAt',
      slotName: 'updateAt'
    },
    {
      label: '操作',
      slotName: 'handle',
      width: '150'
    }
  ],
  isShowIndex: true,
  isShowSelection: true,
  title: '商品列表',
  btn: '新增商品'
};
